<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box1 {
            background-color: red;
            margin: 10px 0;
        }

        .box2 {
            box-shadow: 10px 10px 10px rgba(0, 0, 0, .5);
        }
        .box3{
            color: aliceblue;
        }
    </style>
</head>
<body>
<div id="app">
    <!--
        基本语法：<div :class="[类名1，类名2，类名3]"></div>
                <div :class="classNamesArray"></div>
    -->
    <!--数组语法方式一：-->
    <div :class="['box1','box2']">绑定class数组语法方式一</div>
    <!--数组语法方式二：-->
    <div :class="classArray">绑定class数组语法方式二</div>
</div>
<script src="../../JavaScript/vue.js"></script>
<script>
    const app = Vue.createApp({
        data() {
            return {
                classArray:['box1','box2',"box3"]
            }
        }
    })
    app.mount("#app")
</script>
</body>
</html>